/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aybolit.core.objects;


import aybolit.core.objects.dao.OperatorsDao;
import aybolit.core.objects.model.Operators;
import java.io.Serializable;
import java.util.List;

/**
 *
 * @author Masumov Emin
 */
public class OperatorsBean implements Serializable {

    public String name;
    public String address;
    OperatorsDao  operatorsDao;
//    private Map<String, String> cities = new HashMap<String, String>();

    public void setOperatorsDao(OperatorsDao operatorsDao) {
        this.operatorsDao = operatorsDao;
    }



    public List<Operators> getCustomerList() {
        List<Operators> list = operatorsDao.findAlloperators();

        return list;
    }

    public String addCustomer() {

        Operators cust = new Operators();
//		cust.setName(getName());
//		cust.setAddress(getAddress());
//		customerBo.addCustomer(cust);

        clearForm();
        return "";
    }

    private void clearForm() {
//		setName("");
//		setAddress("");
        
    }
}
